<template>
	<view>
		<!-- <free-nav-bar showBack title="公告详情"></free-nav-bar> -->
		<view class="font-12 pl-2 pt-2 text-999999">来源：{{ newlist.source }}</view>
		<view class="font-12 pl-2 pt-2 text-999999">标题：{{ newlist.title }}</view>
		<view class="font-12 pl-2 pt-2 text-999999">发布时间：{{ newlist.releaseTime }}</view>
		<view class="pl-2 pr-2 mt-6 pb-2">
			<view class="text-center pb-2 font-16 font-weight-bold text-333333">{{newlist.title}}</view>
			<!-- <rich-text :nodes="detailsObj.content"></rich-text> -->
			<u-parse :html="newlist.content"></u-parse>
		</view>
	</view>
</template>

<script>
	import freeNavBar from '@/components/free-ui/free-nav-bar.vue'
	import $H from '@/common/free-lib/request.js'
	export default {
		components: {
			freeNavBar,
		},
		data() {
			return {
				
				newlist:{}
			}
		},
		onLoad(options) {
			const id = options.id;
			this.NewListDetail(id)
		},
		computed: {
			richTextNodes() {
				return this.parseHTML(this.htmlContent)
			},
		},
		methods: {
			NewListDetail(id) {
				$H.get('/basisInform/platformNotice/queryById', {id: id}, {}).then(res => {
					this.newlist = res.result
				}).catch(error => {
					uni.showToast({
						title: "网络错误，请稍后再试",
						icon: 'none'
					});
				});
			},
		},
	}
</script>

<style></style>